# 
# The Armor Technology Group
#
#
#	
#	
#	
technology = {
	id = 2
	category = armor
	name = TECH_ARMOR_NAME #Localized name
	desc = TECH_ARMOR_DESC #Localized description
	
	level = { # 1 - Post-Great War Tanks
		id = 2000
		name = "Great War Tanks"
		desc = TECH_LEVEL_ARMOR_1_DESC 
		
		cost = 20
		time = 180
		neg_offset = 45
		pos_offset = 90

		application = { # Early Gear
			id = 2001
			name = TECH_APP_ARMOR_1_1_NAME
			desc = TECH_APP_ARMOR_1_1_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Early Suspension
			id = 2002
			name = TECH_APP_ARMOR_1_2_NAME
			desc = TECH_APP_ARMOR_1_2_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Early Engine
			id = 2003
			name = TECH_APP_ARMOR_1_3_NAME
			desc = TECH_APP_ARMOR_1_3_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Early Halftrack Troop Carrier
			id = 2004
			name = TECH_APP_ARMOR_1_4_NAME
			desc = TECH_APP_ARMOR_1_4_DESC
			
			required = { }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = mechanized when = now value = 1 }
				command = { type = ground_defense which = mechanized when = now value = 1 }
			}
		}
		application = { # Early Tank Prototype Tests
			id = 2005
			name = TECH_APP_ARMOR_1_5_NAME
			desc = TECH_APP_ARMOR_1_5_DESC
			
			required = { 2001 2002 2003 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Great War Tank
			id = 2006
			name = "Great War Tank"
			desc = "Tanks were first used in World War One to break the stalemate of the trenches. Most were armed with either machine guns or cannon. In some examples, both cannon and machine guns were fitted. Historically, this was the British Mark V tank."
			
			required = { 2005 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 1 }
			}
		}
	} # Level 1
	
	level = { # 2 - Interwar Tanks
		id = 2100
		name = "Interwar Tanks"
		desc = "The two decades between the two World Wars was a time of great experimentation into tankettes and multi-turreted monstrosities that in the end proved to be utterly impractical in real-world conditions. However, the experience gained in developing these abortive attempts would be invaluable in designing the first real workable tanks."
		
		cost = 20
		time = 180
		neg_offset = 45
		pos_offset = 90
	application = { # Basic Gear
			id = 2201
			name = TECH_APP_ARMOR_3_1_NAME
			desc = TECH_APP_ARMOR_3_1_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Suspension
			id = 2202
			name = TECH_APP_ARMOR_3_2_NAME
			desc = TECH_APP_ARMOR_3_2_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Engine
			id = 2203
			name = TECH_APP_ARMOR_3_3_NAME
			desc = TECH_APP_ARMOR_3_3_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Optical Sights
			id = 2101
			name = TECH_APP_ARMOR_2_1_NAME
			desc = TECH_APP_ARMOR_2_1_DESC
			
			required = { 2005 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Tankette Prototype
			id = 2986
			name = "Tankette Prototype"
			desc = "A theory was put forward by the great French tank enthusiast General Estienne, who helped design France's first tank and was a proponent of the light tank, of the idea of skirmishers armed with light tanks rushing an enemy position. The idea was that the massive onslaught by a high speed and protected group of soldiers would be unstoppable in action. These tanks would be called Tankettes, and would have a crew of one man."
			
			required = { 2201 2202 2203 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				
			}
		}
		application = { # Tankette (.30 MG)
			id = 2987
			name = "Tankette (.30 MG)"
			desc = "This tankette was armed with a single .30 caliber Machine Gun. Historically, this was the British Carden-Loyd Mark I. Since their inability to survive on the battlefield, tankettes often were used as a scout vehicles."
			
			required = { 2986 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = army_detection which = us value = 2 }
				command = { type = new_model which = armor value = 2 }
				command = { type = deactivate which = 2988 }
			}
		}
		application = { # Tankette (.50 MG)
			id = 2988
			name = "Tankette (.50 MG)"
			desc = "This tankette was armed with a single .50 caliber Machine Gun. Historically, this was the British Carden-Loyd Mark VI an polish TK/TKS.Since their inability to survive on the battlefield, tankettes often were used as a scout vehicles."
			
			required = { 2986 14973 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = army_detection which = us value = 2 }
				command = { type = new_model which = armor value = 3 }
				command = { type = deactivate which = 2987 }
			}
		}
		application = { # Infantry Support Tank Prototype
			id = 2985
			name = "Inf Support Tank Prototype"
			desc = "Infantry support tanks were based around the Great War concept of the land battleship, advancing with infantry and breaking defences thanks to multiple turrets containing cannons or machine guns. Historically, this was the British Vickers A1E1 Independent."
			
			required = { 2201 2202 2203 2101}
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Inf Support Tank battalion
			id = 2993
			name = "Inf Support Tank battalion"
			desc = "Infantry support tanks were based around the Great War concept of the land battleship, advancing with infantry and breaking defences thanks to multiple turrets containing cannons or machine guns. Historically, this was the British Vickers A1E1 Independent. Battalions of those were usually added to the units assaulting heavy fortified enemy positions."
			
			required = { 2985 14105 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = new_model which = armor value = 4 }
				command = { type = soft_attack which = infantry when = on_upgrade value = 1 } # new
				command = { type = ground_defense which = infantry when = on_upgrade value = 1 } # new
				command = { type = build_time which = infantry when = on_upgrade value = 10 } # new
				command = { type = build_cost which = infantry when = on_upgrade value = 1 } # new
				command = { type = supply_consumption which = infantry when = on_upgrade value = 0.1 } # new

			}
		}
	} # Level 2
	
	level = { # 3 - Amphibious Tanks
		id = 2200
		name = TECH_LEVEL_ARMOR_3_NAME 
		desc = TECH_LEVEL_ARMOR_3_DESC 
				
		cost = 20
		time = 180
		neg_offset = 45
		pos_offset = 90

	
		application = { # Basic Wading Equipment
			id = 2204
			name = TECH_APP_ARMOR_3_4_NAME
			desc = TECH_APP_ARMOR_3_4_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = river_attack which = mechanized value = 5 } # -5
				command = { type = river_attack which = armor value = 5 } # -5
			}
		}
	application = { # Improved Wading Equipment
			id = 2502
			name = TECH_APP_ARMOR_6_2_NAME
			desc = TECH_APP_ARMOR_6_2_DESC
			
			required = { 2204 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = river_attack which = mechanized value = 5 } # -5
				command = { type = river_attack which = armor value = 5 } # -5
			}
		}
application = { # Advanced Wading Equipment
			id = 2802
			name = TECH_APP_ARMOR_9_2_NAME
			desc = TECH_APP_ARMOR_9_2_DESC
			
			required = { 2502 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = river_attack which = mechanized value = 5 } # -5
				command = { type = river_attack which = armor value = 5 } # -5
			}
		}
		application = { # Basic Amphibious Tank
			id = 2205
			name = TECH_APP_ARMOR_3_5_NAME
			desc = TECH_APP_ARMOR_3_5_DESC
			
			required = { 2005 2204 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = shore_attack which = mechanized value = 5 }
				command = { type = shore_attack which = armor value = 5 }
			}
		}
		application = { # Basic Amphibious Assault Vehicle
			id = 2206
			name = TECH_APP_ARMOR_3_6_NAME
			desc = TECH_APP_ARMOR_3_6_DESC
			
			required = { 2005 2204 13405 6040 } # Naval training added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = marine when = now value = 1 }
				command = { type = hard_attack which = marine when = now value = 1 }
				command = { type = ground_defense which = marine when = now value = 1 }
			}
		}
application = { # Improved Amphibious Tank
			id = 2403
			name = TECH_APP_ARMOR_5_3_NAME
			desc = TECH_APP_ARMOR_5_3_DESC
			
			required = { 2205 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = shore_attack which = armor value = 5 }
			}
		}
		application = { # Improved Amphibious Assault Vehicle
			id = 2404
			name = TECH_APP_ARMOR_5_4_NAME
			desc = TECH_APP_ARMOR_5_4_DESC
			
			required = { 2206 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = marine when = now value = 1 }
				command = { type = hard_attack which = marine when = now value = 1 }
			}
		}
	application = { # Advanced Amphibious Tank
			id = 2605
			name = TECH_APP_ARMOR_7_5_NAME
			desc = TECH_APP_ARMOR_7_5_DESC
			
			required = { 2403 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = shore_attack which = armor value = 5 }
			}
		}
		application = { # Advanced Amphibious Assault Vehicle
			id = 2606
			name = TECH_APP_ARMOR_7_6_NAME
			desc = TECH_APP_ARMOR_7_6_DESC
			
			required = { 2404 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = marine when = now value = 2 }
			}
		}
		application = { # Submersible Tank
			id = 2207
			name = TECH_APP_ARMOR_3_7_NAME
			desc = TECH_APP_ARMOR_3_7_DESC
			
			required = { 2205 11405 } # Land doctrine as a must added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = shore_attack which = mechanized value = 5 }
				command = { type = shore_attack which = armor value = 5 }
			}
		}

	} # Level 3
	
	level = { # 4 - Basic Tanks
		id = 2300
		name = "Basic Tanks"
		desc = "After many stops and starts and failed design avenues, the first truly practicable tanks were about to be designed. They would combine armor, speed, and firepower to an unprecedented extent."
				
		cost = 20
		time = 350
		neg_offset = 45
		pos_offset = 90

		application = { # Improved Gear
			id = 2301
			name = TECH_APP_ARMOR_4_1_NAME
			desc = TECH_APP_ARMOR_4_1_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Improved Suspension
			id = 2302
			name = TECH_APP_ARMOR_4_2_NAME
			desc = TECH_APP_ARMOR_4_2_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Improved Engine
			id = 2303
			name = TECH_APP_ARMOR_4_3_NAME
			desc = TECH_APP_ARMOR_4_3_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Airborne Tank
			id = 2304
			name = TECH_APP_ARMOR_4_4_NAME
			desc = TECH_APP_ARMOR_4_4_DESC
			
			required = { 2103 12203 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = paratrooper when = now value = 1 }
				command = { type = hard_attack which = paratrooper when = now value = 1 }
			}
		}
		application = { # Desert Operations Equipment
			id = 2208
			name = TECH_APP_ARMOR_3_8_NAME
			desc = TECH_APP_ARMOR_3_8_DESC
			
			required = { 11004 } # Land doctrine added
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = desert_move which = mechanized value = 10 }
				command = { type = desert_move which = armor value = 10 }
			}
		}
	application = { # .30 Cal AAMG
			id = 2956
			name = ".30 Cal AAMG"
			desc = "A .30 Caliber machine gun was mounted typically near the commander's hatch in a special mount designed for defense against attacking aircraft. Historically, this was the US M1919A6 in the AAMG role."
			required = { 1975 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = air_defense which = armor when = on_upgrade value = 1 }
				command = { type = soft_attack which = armor when = on_upgrade value = 1 }
			}
		}
	application = { # Basic Halftrack Troop Carrier
			id = 2102
			name = TECH_APP_ARMOR_2_2_NAME
			desc = TECH_APP_ARMOR_2_2_DESC
			
			required = { 2004 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = speed which = mechanized when = now value = 1 }
				command = { type = soft_attack which = mechanized when = now value = 1 }
				command = { type = ground_defense which = mechanized when = now value = 1 }
			}
		}
		application = { # Basic Light Tank Prototype Tests
			id = 2103
			name = TECH_APP_ARMOR_2_3_NAME
			desc = TECH_APP_ARMOR_2_3_DESC
			
			required = { 2005 2101 2201 2202 2203 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Light Tank (MG)
			id = 2104
			name = TECH_APP_ARMOR_2_4_NAME
			desc = TECH_APP_ARMOR_2_4_DESC
			
			required = { 2103 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 5 }
			}
		}
		application = { # Basic Light Tank (20+mm)
			id = 2105
			name = TECH_APP_ARMOR_2_5_NAME
			desc = TECH_APP_ARMOR_2_5_DESC
			
			required = { 2103 14010 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 6 }
				command = { type = deactivate which = 2104 }
				command = { type = deactivate which = 2106 }
				command = { type = deactivate which = 2107 }
			}
		}
		application = { # Basic Light Tank (30+mm)
			id = 2106
			name = TECH_APP_ARMOR_2_6_NAME
			desc = TECH_APP_ARMOR_2_6_DESC
			
			required = { 2103 14011 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 7 }
				command = { type = deactivate which = 2104 }
				command = { type = deactivate which = 2105 }
				command = { type = deactivate which = 2107 }
			}
		}
		application = { # Basic Light Tank (40+mm)
			id = 2107
			name = TECH_APP_ARMOR_2_7_NAME
			desc = TECH_APP_ARMOR_2_7_DESC
			
			required = { 2103 14105 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 8 }
				command = { type = deactivate which = 2104 }
				command = { type = deactivate which = 2105 }
				command = { type = deactivate which = 2106 }
			}
		}
		application = { # Light Assault Gun (30+mm)
			id = 2305
			name = TECH_APP_ARMOR_4_5_NAME
			desc = TECH_APP_ARMOR_4_5_DESC
			
			required = { 2103 14003 11203 } # add Combined Arms Warfare Doctrine
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = soft_attack which = motorized when = on_upgrade value = 1 }
			}
		}
	application = { # Light Tank Destroyer (30+mm)
			id = 2307
			name = TECH_APP_ARMOR_4_7_NAME
			desc = TECH_APP_ARMOR_4_7_DESC
			
			required = { 2103 14008 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = hard_attack which = motorized when = on_upgrade value = 1 }
				command = { type = hard_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = hard_attack which = anti_tank when = on_upgrade value = 1 }
			}
		}
		application = { # Light Tank Destroyer (40+mm)
			id = 2308
			name = TECH_APP_ARMOR_4_8_NAME
			desc = TECH_APP_ARMOR_4_8_DESC
			
			required = { 2307 14009 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = hard_attack which = motorized when = on_upgrade value = 1 }
				command = { type = hard_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = hard_attack which = anti_tank when = on_upgrade value = 1 }
			}
		}
	application = { # Light Tank Destroyer (50+mm)
			id = 2406
			name = TECH_APP_ARMOR_5_6_NAME
			desc = TECH_APP_ARMOR_5_6_DESC
			
			required = { 2308 14206 11401 } # added Elastic Defense Doctrine
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = hard_attack which = motorized when = on_upgrade value = 1 }
				command = { type = hard_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = hard_attack which = anti_tank when = on_upgrade value = 1 }
			}
		}
		application = { # Basic Medium Tank Prototype Tests
			id = 2314
			name = TECH_APP_ARMOR_4_14_NAME
			desc = TECH_APP_ARMOR_4_14_DESC
		
			required = { 2301 2302 2303 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Medium Tank (MG)
			id = 2315
			name = TECH_APP_ARMOR_4_15_NAME
			desc = "The tank was a formidable component on the battlefield due to it's protection and speed. It could be found alongside infantry, used in conjunction with other mechanized equipment or combined into a tank unit depending on the doctrine by which it was employed. The Basic Medium Tank (MG) was equipped with a machinegun allowing to defeat only soft targets."
			
			required = { 2314 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 12 }
			}
		}
		application = { # Basic Medium Tank (30+mm)
			id = 2316
			name = TECH_APP_ARMOR_4_16_NAME
			desc = TECH_APP_ARMOR_4_16_DESC
			
			required = { 2314 14011 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 13 }
				command = { type = deactivate which = 2315 }
				command = { type = deactivate which = 2317 }
				command = { type = deactivate which = 2318 }
				command = { type = deactivate which = 2319 }
			}
		}
		application = { # Basic Medium Tank (40+mm)
			id = 2317
			name = TECH_APP_ARMOR_4_17_NAME
			desc = TECH_APP_ARMOR_4_17_DESC
			
			required = { 2314 14105 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 14 }
				command = { type = deactivate which = 2315 }
				command = { type = deactivate which = 2316 }
				command = { type = deactivate which = 2318 }
				command = { type = deactivate which = 2319 }
			}
		}
		application = { # Basic Medium Tank (50+mm)
			id = 2318
			name = TECH_APP_ARMOR_4_18_NAME
			desc = TECH_APP_ARMOR_4_18_DESC
			
			required = { 2314 14206 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 15 }
				command = { type = deactivate which = 2315 }
				command = { type = deactivate which = 2316 }
				command = { type = deactivate which = 2317 }
				command = { type = deactivate which = 2319 }
			}
		}
		application = { # Basic Medium Tank (70mm+ Short)
			id = 2319
			name = "Basic Medium Tank (70mm+ Short)"
			desc = "This is a medium tank mounting a short barrelled infantry support gun."
			
			required = { 2314 14207 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 16 }
				command = { type = deactivate which = 2315 }
				command = { type = deactivate which = 2316 }
				command = { type = deactivate which = 2317 }
				command = { type = deactivate which = 2318 }
			}
		}

		application = { # Flame Tank
			id = 2989
			name = "Flame Tank"
			desc = "During the late 30' development of the tanks as fast, attack weapons was still countered by their 'traditional' role - infantry support. One of the designs prepared for this role was flame tank - usualy standard light or medium tank with main armament (gun) replaced by heavy flamethrower. Flame tanks weapons had extremely short range, but were quite effective against fortified positions, as well as in jungle fighting. Historically those were German Pz III Flamm, Soviet OT-26 and OT-34 and US modifications of M4 Sherman."
			
			required = { 1202 2314 } # Flamethrower, Basic Medium prot.
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
				
			effects = {
				command = { type = fort_attack which = armor value = 3 }
				command = { type = jungle_attack which = armor value = 5 }
				command = { type = fort_attack which = mechanized value = 3 }
				command = { type = jungle_attack which = mechanized value = 5 }
				command = { type = fort_attack which = marine value = 3 }
				command = { type = jungle_attack which = marine value = 7 }
			}
		}


		application = { # Medium Assault Gun (70+mm S)
			id = 2306
			name = "Medium Assault Gun (70+mm S)"
			desc = TECH_APP_ARMOR_4_6_DESC
			
			required = { 2305 2314 14207 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = soft_attack which = motorized when = on_upgrade value = 1 }
			}
		}
		application = { # Medium Assault Gun (70+mm M)
			id = 2998
			name = "Medium Assault Gun (70+mm M)"
			desc = "The medium assault gun (70+mm M) was based off a modified basic medium tank chassis, and mounted a medium 70+mm Gun. Historically, this was the German StuG IIIG and StuG IV."
			
			required = { 2305 2306 14976 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = soft_attack which = motorized when = on_upgrade value = 1 }
				command = { type = hard_attack which = mechanized when = on_upgrade value = 2 }
				command = { type = hard_attack which = motorized when = on_upgrade value = 2 }
			}
		}
		application = { # Basic Heavy Tank Prototype Tests
			id = 2612
			name = TECH_APP_ARMOR_7_12_NAME
			desc = TECH_APP_ARMOR_7_12_DESC
			
			required = { 2301 2302 2303 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Heavy Tank Battalion
			id = 2703
			name = "Basic Heavy Tank Battalion"
			desc = "The early war heavy tanks carried thick armor and reasonable firepower, but had little, if no mobility. Most of the time, heavy tank battalions were used as a reserve units - either to break heavy fortified enemy positions or to deny enemy breakthrough."
			
			required = { 2612 14207 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = fort_attack which = armor value = 5 } # new
				command = { type = soft_attack which = armor when = on_upgrade value = 2 } # new
				command = { type = ground_defense which = armor when = on_upgrade value = 2 } # new
				command = { type = speed which = armor when = on_upgrade value = -1 } # new
				command = { type = build_time which = armor when = on_upgrade value = 10 } # new
				command = { type = build_cost which = armor when = on_upgrade value = 1 } # new
				command = { type = fuel_consumption which = armor when = on_upgrade value = 0.2 } # new
				command = { type = supply_consumption which = armor when = on_upgrade value = 0.1 } # new
			}
		}
	} # Level 4
	
	level = { # 5 - Improved Tanks
		id = 2400
		name = "Improved Tanks"
		desc = "The previous generation of tanks had proven themselves and already the military establishments of the world were drawing up plans for improved successors to the highly successful tanks currently in service. These Improved tanks would have thicker armor and more powerful guns than before."
		cost = 20
		time = 350
		neg_offset = 45
		pos_offset = 90

	application = { # .50 Cal AAMG
			id = 2955
			name = ".50 Cal AAMG"
			desc = "A .50 Caliber machine gun was mounted typically near the commander's hatch in a special mount designed for air defense against attacking aircraft. Historically, this was the US M2HB in the AAMG role."
			required = { 14973 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = air_defense which = armor when = on_upgrade value = 1 }
				command = { type = soft_attack which = armor when = on_upgrade value = 1 }
			}
		}
	application = { # Sloped Armor Application
			id = 2990
			name = "Sloped Armor"
			desc = "Sloped Armour had existed to some degree in armoured vehicles for many years. But not until World War II was it practically implemented in the overall design of tanks. The sloped armour increased the protection of armoured vehicles without adding actual armour and weight. Instead the sloping armour could redirect a projectile, allowing it to skid off the vehicle's hull."
			required = { 2400 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 3 }
			}
		}
		application = { # Improved Optical Sights
			id = 2401
			name = TECH_APP_ARMOR_5_1_NAME
			desc = TECH_APP_ARMOR_5_1_DESC
			
			required = { 2101 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = hard_attack which = armor when = on_upgrade value = 1 }
			}
		}
		application = { # Vehicle Radio Intercoms
			id = 2402
			name = TECH_APP_ARMOR_5_2_NAME
			desc = TECH_APP_ARMOR_5_2_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 1 }
			}
		}
		
		application = { # Improved Halftrack Troop Carrier
			id = 2405
			name = TECH_APP_ARMOR_5_5_NAME
			desc = TECH_APP_ARMOR_5_5_DESC
			
			required = { 2102 11300 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = speed which = mechanized when = now value = 1 }
				command = { type = soft_attack which = mechanized when = now value = 1 }
				command = { type = ground_defense which = mechanized when = now value = 1 }
			}
		}
	application = { # Improved Light Tank Prototype Tests
			id = 2209
			name = TECH_APP_ARMOR_3_9_NAME
			desc = TECH_APP_ARMOR_3_9_DESC
			
			required = { 2201 2202 2103 2203 11300 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Improved Light Tank (20+mm)
			id = 2210
			name = TECH_APP_ARMOR_3_10_NAME
			desc = TECH_APP_ARMOR_3_10_DESC
			
			required = { 2209 14010 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 9 }
				command = { type = deactivate which = 2211 }
				command = { type = deactivate which = 2212 }
			}
		}
		application = { # Improved Light Tank (30+mm)
			id = 2211
			name = TECH_APP_ARMOR_3_11_NAME
			desc = TECH_APP_ARMOR_3_11_DESC
			
			required = { 2209 14011 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 10 }
				command = { type = deactivate which = 2210 }
				command = { type = deactivate which = 2212 }
			}
		}
		application = { # Improved Light Tank (40+mm)
			id = 2212
			name = TECH_APP_ARMOR_3_12_NAME
			desc = TECH_APP_ARMOR_3_12_DESC
			
			required = { 2209 14105 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 11 }
				command = { type = deactivate which = 2210 }
				command = { type = deactivate which = 2211 }
			}
		}
		application = { # Improved Medium Tank Prototype Tests
			id = 2407
			name = TECH_APP_ARMOR_5_7_NAME
			desc = TECH_APP_ARMOR_5_7_DESC
			
			required = { 2301 2302 2303 2314 11300 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Improved Medium Tank (40+mm)
			id = 2408
			name = TECH_APP_ARMOR_5_8_NAME
			desc = TECH_APP_ARMOR_5_8_DESC
			
			required = { 2407 14105 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 17 }
				command = { type = deactivate which = 2409 }
				command = { type = deactivate which = 2410 }
				command = { type = deactivate which = 2981 }
				command = { type = deactivate which = 2503 }
			}
		}
		application = { # Improved Medium Tank (50+mm)
			id = 2409
			name = TECH_APP_ARMOR_5_9_NAME
			desc = TECH_APP_ARMOR_5_9_DESC
			
			required = { 2407 14206 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 18 }
				command = { type = deactivate which = 2408 }
				command = { type = deactivate which = 2410 }
				command = { type = deactivate which = 2981 }
				command = { type = deactivate which = 2503 }
			}
		}
		application = { # Improved Medium Tank (70+mm)
			id = 2410
			name = "Improved Medium Tank (70mm+ Medium)"
			desc = "The tank was a formidable component on the battlefield due to its protection and speed. It could be found alongside infantry, used in conjunction with other mechanized equipment or combined into a tank unit depending on the doctrine by which it was employed. The Improved Medium Tank (70+mm) was equipped with a 70+mm Tank Gun allowing it to defeat soft and medium armoured targets. Historically this was the German PzKpfw IV Ausf F2-J,  the Italian Carro Pesante P26/40, the Soviet T-34-76, the US M4 Sherman and the Japanese Type 2 Ho-I and Type 3 Chi-Nu."
			
			required = { 2407 14976 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 19 }
				command = { type = deactivate which = 2408 }
				command = { type = deactivate which = 2409 }
				command = { type = deactivate which = 2981 }
				command = { type = deactivate which = 2503 }
			}
		}		
		application = { # Improved Medium Tank (70+mm Long)
			id = 2981
			name = "Improved Medium Tank (70+mm Long)"
			desc = "The tank was a formidable component on the battlefield due to its protection and speed. It could be found alongside infantry, used in conjunction with other mechanized equipment or combined into a tank unit depending on the doctrine by which it was employed. The Improved Medium Tank (70+mm L) was equipped with a 70+mm Long Tank Gun allowing it to defeat soft and medium armoured targets. Historically this was the British A30 Challenger with a 17-pounder gun, and rebuilt lend-lease Sherman Fireflies."
			
			required = { 2407 14977 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 20 }
				command = { type = deactivate which = 2408 }
				command = { type = deactivate which = 2409 }
				command = { type = deactivate which = 2410 }
				command = { type = deactivate which = 2503 }
			}
		}
		application = { # Improved Medium Tank (80+mm)
			id = 2503
			name = TECH_APP_ARMOR_6_3_NAME
			desc = TECH_APP_ARMOR_6_3_DESC
			
			required = { 2407 14503 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 21 }
				command = { type = deactivate which = 2408 }
				command = { type = deactivate which = 2409 }
				command = { type = deactivate which = 2410 }
				command = { type = deactivate which = 2981 }
			}
		}
		application = { # Improved Heavy Tank Prototype Tests
			id = 2704
			name = TECH_APP_ARMOR_8_4_NAME
			desc = TECH_APP_ARMOR_8_4_DESC
			
			required = { 2612 2301 2302 2303 11300 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}

			application = { # Improved Heavy Tank Battalion
			id = 2705
			name = "Imp Heavy Tank Battalion"
			desc = "Unlike early war heavy tanks, vehicles like Pz VI Tiger or KW were mobile enough to support large tank formations without slowing them down. Better protection granted by armour and mobility made units armed with those tanks real elites."
			
			required = { 2704 14503 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = armor when = on_upgrade value = 2 } # new
				command = { type = hard_attack which = armor when = on_upgrade value = 2 } # new
				command = { type = ground_defense which = armor when = on_upgrade value = 2 } # new
				command = { type = build_time which = armor when = on_upgrade value = 10 } # new
				command = { type = build_cost which = armor when = on_upgrade value = 2 } # new
				command = { type = fuel_consumption which = armor when = on_upgrade value = 0.3 } # new
				command = { type = supply_consumption which = armor when = on_upgrade value = 0.3 } # new
			}
		}
		application = { # Medium Tank Destroyer (70+mm)
			id = 2411
			name = TECH_APP_ARMOR_5_11_NAME
			desc = TECH_APP_ARMOR_5_11_DESC
			
			required = { 2406 2407 14205 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = hard_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = hard_attack which = anti_tank when = on_upgrade value = 1 }
			}
		}
		application = { # Medium Tank Destroyer (80+mm)
			id = 2412
			name = TECH_APP_ARMOR_5_12_NAME
			desc = TECH_APP_ARMOR_5_12_DESC
			
			required = { 2411 14303 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = hard_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = hard_attack which = anti_tank when = on_upgrade value = 1 }
			}
		}
		application = { # Medium Tank Destroyer (90+mm)
			id = 2413
			name = TECH_APP_ARMOR_5_13_NAME
			desc = TECH_APP_ARMOR_5_13_DESC
			
			required = { 2412 14304 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = hard_attack which = mechanized when = on_upgrade value = 1 }
				command = { type = hard_attack which = anti_tank when = on_upgrade value = 1 }
			}
		}
	} # Level 5
	
	level = { # 6 - Tank Applications
		id = 2500
		name = "Tank Applications"
		desc = "Now that tanks had proved themselves on the battlefield, the military establishments of the world looked for new uses for these land-based behemoths, ranging from useful applications to ones that were off-the-wall."
				
		cost = 20
		time = 180
		neg_offset = 45
		pos_offset = 90

		application = { # Applique Armor
			id = 2934
			name = "Applique Armor"
			desc = "Many tank crews welded applique armor consisting of armor plates salvaged from wrecked tanks over critical spots on their tanks, improving the armor thickness in those areas."
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 1 }
			}
		}

		application = { # Basic Armor Skirts
			id = 2501
			name = TECH_APP_ARMOR_6_1_NAME
			desc = TECH_APP_ARMOR_6_1_DESC
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 1 }
			}
		}
	application = { # Engineering Tanks
			id = 2984
			name = "Engineering Tank (290mm Mortar)"
			desc = "Engineering tanks used specialized equipment and weapons to assist engineers in clearing obstacles and fortifications in front of the advancing troops. Historically, this was the Churchill AVRE, which mounted a 290mm spigot-type mortar gun known as the 'Petard', capable of damaging severely even the most sturdiest of fortifications."
			
			required = { 14979 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = fort_attack which = engineer when = on_upgrade value = 5 }
			}
		}

	application = { # Heavy evacuation vehicle
			id = 2982
			name = "Heavy evacuation vehicle"
			desc = "After the first period of war it became obvious, that traditional methods of repairs not suit new, fast style of warfare. In battles most of the tanks were not destroyed, but damaged. Vehicles that were knocked off or recieved damage beyond their own ability to repair had to wait for repair teams, thus slowing the advance. The answer for that problem was the heavy evacuation vehicle, able to remove damaged tank right from the battlefield even under enemy fire and repair it right on the front line. Historically those vehicles were modifications of standard medium and heavy tanks, like M4 Sherman, Cromwell or Churchill."
			
			required = { 1305 2407 11400 } # Bulldozer, Imp. Medium prot., Late War Experience
			chance = 90
			cost = 12
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = max_organization which = armor when = on_upgrade value = 3 }
				command = { type = air_defense which = armor when = on_upgrade value = 1 }
				command = { type = ground_defense which = armor when = on_upgrade value = 1 }

			}
		}

		application = { # Remote Controlled Tank
			id = 2994
			name = "Remote Controlled Tank"
			desc = "A small tank equipped with a remote control is used by engineer units to carry a large quantity of high explosives to a target and then detonate the explosives, destroying both itself and the target. Historically, this was the German Goliath."
			
			required = { 3204 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = soft_attack which = engineer when = on_upgrade value = 1 }
				command = { type = fort_attack which = engineer when = on_upgrade value = 3 } # change
			}
		}

	} # Level 6
	
	level = { # 7 - Advanced Tanks
		id = 2600
		name = "Advanced Tanks"
		desc = TECH_LEVEL_ARMOR_7_DESC 
				
		cost = 20
		time = 350
		neg_offset = 45
		pos_offset = 90

		application = { # Advanced Gear
			id = 2601
			name = TECH_APP_ARMOR_7_1_NAME
			desc = TECH_APP_ARMOR_7_1_DESC
			
			required = { 2301 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Advanced Suspension
			id = 2602
			name = TECH_APP_ARMOR_7_2_NAME
			desc = TECH_APP_ARMOR_7_2_DESC
			
			required = { 2302 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Advanced Engine
			id = 2603
			name = TECH_APP_ARMOR_7_3_NAME
			desc = TECH_APP_ARMOR_7_3_DESC
			
			required = { 2303 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Advanced Halftrack Troop Carrier
			id = 2604
			name = TECH_APP_ARMOR_7_4_NAME
			desc = TECH_APP_ARMOR_7_4_DESC
			
			required = { 2405 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = speed which = mechanized when = now value = 1 }
				command = { type = soft_attack which = mechanized when = now value = 1 }
				command = { type = ground_defense which = mechanized when = now value = 1 }
			}
		}
		application = { # Advanced Light Tank Prototype Tests
			id = 2309
			name = TECH_APP_ARMOR_4_9_NAME
			desc = TECH_APP_ARMOR_4_9_DESC
			
			required = { 2209 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Advanced Light Tank Recon Battalion
			id = 2313
			name = "Advanced Light Tank Recon Battalion"
			desc = "Development of the new generations of medium tanks, as well as new, more effective AT weapons, resulted in change of light tanks use. Unable to withstand modern battlefield firepower, light tanks were employed as recon vehicles and as a support for their heavier counterparts in hard terrain."
			
			required = { 2309 14974 4803 } # Quality Control added, 20mm air cannon added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
command = { type = speed which = armor when = on_upgrade value = 1 }
command = { type = desert_attack which = armor when = on_upgrade value = 3 }
command = { type = desert_defense which = armor when = on_upgrade value = 3 }
command = { type = hill_attack which = armor when = on_upgrade value = 3 }
command = { type = hill_defense which = armor when = on_upgrade value = 3 }
command = { type = forest_attack which = armor when = on_upgrade value = 3 }
command = { type = forest_defense which = armor when = on_upgrade value = 3 }
command = { type = speed which = mechanized when = on_upgrade value = 1 }
command = { type = desert_attack which = mechanized when = on_upgrade value = 3 }
command = { type = desert_defense which = mechanized when = on_upgrade value = 3 }
command = { type = hill_attack which = mechanized when = on_upgrade value = 3 }
command = { type = hill_defense which = mechanized when = on_upgrade value = 3 }
command = { type = forest_attack which = mechanized when = on_upgrade value = 3 }
command = { type = forest_defense which = mechanized when = on_upgrade value = 3 }	
			}
		}

		application = { # Advanced Medium Tank Prototype Tests
			id = 2504
			name = TECH_APP_ARMOR_6_4_NAME
			desc = TECH_APP_ARMOR_6_4_DESC
			
			required = { 2407 }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = {  }
			}
		}
		application = { # Advanced Medium Tank (50+mm)
			id = 2505
			name = TECH_APP_ARMOR_6_5_NAME
			desc = TECH_APP_ARMOR_6_5_DESC
			
			required = { 2504 14206 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 22 }
				command = { type = deactivate which = 2506 }
				command = { type = deactivate which = 2611 }
				command = { type = deactivate which = 2983 }
			}
		}
		application = { # Advanced Medium Tank (70+mm)
			id = 2983
			name = "Advanced Medium Tank (70 M)"
			desc = "The tank was a formidable component on the battlefield due to its protection and speed. It could be found alongside infantry, used in conjunction with other mechanized equipment or combined into a tank unit depending on the doctrine by which it was employed. The Advanced Medium Tank (70mm+ M)."
			
			required = { 2504 14976 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 23 }
				command = { type = deactivate which = 2505 }
				command = { type = deactivate which = 2611 }
				command = { type = deactivate which = 2506 }
			}
		}

		application = { # Advanced Medium Tank (70+mm)
			id = 2506
			name = "Advanced Medium Tank (70 L)"
			desc = "The tank was a formidable component on the battlefield due to its protection and speed. It could be found alongside infantry, used in conjunction with other mechanized equipment or combined into a tank unit depending on the doctrine by which it was employed. The Advanced Medium Tank (70mm+ L) was equipped with a long barreled 70+mm Tank Gun allowing it to defeat soft and medium armoured targets. Historically this was the German PzKpfw V Panther, and the British Comet."
			
			required = { 2504 14977 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 24 }
				command = { type = deactivate which = 2505 }
				command = { type = deactivate which = 2611 }
				command = { type = deactivate which = 2983 }
			}
		}
		application = { # Advanced Medium Tank (80+mm)
			id = 2611
			name = TECH_APP_ARMOR_7_11_NAME
			desc = TECH_APP_ARMOR_7_11_DESC
			
			required = { 2504 14503 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 25 }
				command = { type = deactivate which = 2505 }
				command = { type = deactivate which = 2506 }
				command = { type = deactivate which = 2983 }
			}
		}
		application = { # Advanced Heavy Tank Prototype Tests
			id = 2804
			name = TECH_APP_ARMOR_9_4_NAME
			desc = TECH_APP_ARMOR_9_4_DESC
			
			required = { 2601 2602 2603 2704  }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}

		application = { # Advanced Heavy Tank Battalion
			id = 2805
			name = "Adv Heavy Tank Battalion"
			desc = TECH_APP_ARMOR_9_5_DESC
			
			required = { 2804 2705 14503 4803 } # Imp HT Batt added, Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = armor when = on_upgrade value = 1 } # new
				command = { type = hard_attack which = armor when = on_upgrade value = 2 } # new
				command = { type = ground_defense which = armor when = on_upgrade value = 2 } # new
				command = { type = build_time which = armor when = on_upgrade value = 5 } # new
				command = { type = build_cost which = armor when = on_upgrade value = 1 } # new
				command = { type = fuel_consumption which = armor when = on_upgrade value = 0.1 } # new
				command = { type = supply_consumption which = armor when = on_upgrade value = 0.2 } # new
			}
		}

		application = { # Heavy Assault Gun (100+mm)
			id = 2607
			name = TECH_APP_ARMOR_7_7_NAME
			desc = TECH_APP_ARMOR_7_7_DESC
			
			required = { 2306 2804 14102 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = motorized when = on_upgrade value = 1 }
				command = { type = soft_attack which = mechanized when = on_upgrade value = 1 }
			}
		}
		application = { # Heavy Assault Gun (150+mm)
			id = 2608
			name = TECH_APP_ARMOR_7_8_NAME
			desc = TECH_APP_ARMOR_7_8_DESC
			
			required = { 2607 2804 14601 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = soft_attack which = motorized when = on_upgrade value = 1 }
				command = { type = soft_attack which = mechanized when = on_upgrade value = 1 }
			}
		}
		application = { # Heavy Tank Destroyer (100+mm)
			id = 2609
			name = TECH_APP_ARMOR_7_9_NAME
			desc = TECH_APP_ARMOR_7_9_DESC
			
			required = { 2413 2804 14501 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = hard_attack which = anti_tank when = on_upgrade value = 1 }
			}
		}
		application = { # Heavy Tank Destroyer (120+mm)
			id = 2610
			name = TECH_APP_ARMOR_7_10_NAME
			desc = TECH_APP_ARMOR_7_10_DESC
			
			required = { 2609 14502 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = hard_attack which = anti_tank when = on_upgrade value = 2 }
			}
		}


	} # Level 7
	
	level = { # 8 - Improved Heavy Tanks
		id = 2700
		name = "Improved Tank Technology"
		desc = "As World War II progressed, tank design improved and became more efficient and deadly as flaws were identified and corrected."
				
		cost = 20
		time = 180
		neg_offset = 45
		pos_offset = 90

		application = { # Smoke Mortars
			id = 2997
			name = "Smoke Grenade Launchers"
			desc = "These launchers were mounted on the sides of the turret, and when the tank was in trouble, the crew could trigger them from inside the tank, creating a instant smoke screen that could be used for defensive purposes."
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 1 }
			}
		}
		application = { # Mine discharger
			id = 2996
			name = "Mine Discharger"
			desc = "Anti-Personnel Land-mines were mounted on the sides of the turret, and when the tank was being assaulted by infantry close in, the crew could electrically trigger them from inside, killing the attacking infantry."
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = soft_attack which = armor when = on_upgrade value = 1 }
			}
		}
		application = { # Shot Trap Analysis
			id = 2973
			name = "Shot Trap Analysis"
			desc = "As the war progressed, it became apparent that some design features of tanks actually harmed their chances of survival, by allowing enemy shells to riochet off certain areas and into thinner and less well-armored areas of the tank. The identification and removal of these so-called 'shot traps' greatly improved tank survival rates."
			
			required = { 2700 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 1 }
			}
		}
		application = { # Improved Armor Skirts
			id = 2701
			name = TECH_APP_ARMOR_8_1_NAME
			desc = TECH_APP_ARMOR_8_1_DESC
			
			required = { 2501 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 1 }
			}
		}
		application = { # Advanced Optical Sights
			id = 2702
			name = TECH_APP_ARMOR_8_2_NAME
			desc = TECH_APP_ARMOR_8_2_DESC
			
			required = { 2401 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = hard_attack which = armor when = on_upgrade value = 1 }
			}
		}
		application = { # Improved Tracks
			id = 2974
			name = "Improved Tracks"
			desc = "Due to experience gained with the early war tanks, tank tracks were re-designed to be more efficient in moving a tank around, with less wasteage of fuel and less wear and tear on the engine."
			
			required = { 2700 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = speed which = armor when = on_upgrade value = 1 }
				command = { type = fuel_consumption which = armor when = on_upgrade value = -0.3 }
				command = { type = supply_consumption which = armor when = on_upgrade value = -0.3 }
			}
		}
	} # Level 8
	
	level = { # 9 - "Advanced Tank Technology"
		id = 2800
		name = "Advanced Tank Technology"
		desc = "As World War II ground to a fiery halt, radical new systems were tested and fielded by both sides in a desperate attempt to gain the upper hand."
				
		cost = 20
		time = 180
		neg_offset = 45
		pos_offset = 90

		application = { # Advanced Armor Skirts
			id = 2801
			name = TECH_APP_ARMOR_9_1_NAME
			desc = TECH_APP_ARMOR_9_1_DESC
			
			required = { 2701 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 1 }
			}
		}
		application = { # Mine discharger
			id = 2995
			name = "Self-Defense Mortar"
			desc = "A 80+mm mortar is mounted inside the tank for use against attacking infantry and to provide smoke with smoke rounds. Historically, this was the German Nahverteidigungswaffe."
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = soft_attack which = armor when = on_upgrade value = 1 }
			}
		}
application = { # Schmallturm
			id = 2960
			name = "Schmalturm Turret"
			desc = "The Schmalturm (Narrow) turret was the result of a scientific study on the percentages of hits that a tank recieved on a particular arc. The front was found to be hit the most, and by narrowing the turret, a dramatic increase in frontal turret armor could be achieved. Historically, this was the German Schmalturm turret designed for the Panther II."
			
			required = { }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = ground_defense which = armor when = on_upgrade value = 2 }
			}
		}
		application = { # Infrared Optical Sights
			id = 2901
			name = TECH_APP_ARMOR_10_1_NAME
			desc = TECH_APP_ARMOR_10_1_DESC
			
			required = { 2702 3701 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { type = night_attack which = armor when = on_upgrade value = 15 }
				command = { type = night_move which = armor when = on_upgrade value = 15 }
				command = { type = night_defense which = armor when = on_upgrade value = 15 }
			}
		}
	} # Level 9
	
	level = { # 10 - Super Heavy Tanks
		id = 2900
		name = TECH_LEVEL_ARMOR_11_NAME
		desc = TECH_LEVEL_ARMOR_11_DESC 
				
		cost = 20
		time = 200
		neg_offset = 45
		pos_offset = 90

		application = { # Super-Heavy Gear
			id = 2902
			name = TECH_APP_ARMOR_10_2_NAME
			desc = TECH_APP_ARMOR_10_2_DESC
			
			required = { 2601 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Super-Heavy Suspension
			id = 2903
			name = TECH_APP_ARMOR_10_3_NAME
			desc = TECH_APP_ARMOR_10_3_DESC
			
			required = { 2602 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
		application = { # Super-Heavy Engine
			id = 2904
			name = TECH_APP_ARMOR_10_4_NAME
			desc = TECH_APP_ARMOR_10_4_DESC
			
			required = { 2603 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 15
			pos_offset = 30
			
			effects = {
				command = { }
			}
		}
			application = { # Super-Heavy Tank Prototype Tests
			id = 2941
			name = TECH_APP_ARMOR_11_1_NAME
			desc = TECH_APP_ARMOR_11_1_DESC
			
			required = { 2804 2902 2903 2904  }
			chance = 90
			cost = 12
			time = 150
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Super-Heavy Tank (100+mm)
			id = 2942
			name = TECH_APP_ARMOR_11_2_NAME
			desc = TECH_APP_ARMOR_11_2_DESC
			
			required = { 2941 14703 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 26 }
				command = { type = deactivate which = 2943 }
				command = { type = deactivate which = 2935 }
				command = { type = deactivate which = 2971 }
			}
		}
		application = { # Super-Heavy Tank (120+mm A)
			id = 2943
			name = "Super-Heavy Tank (120 A)"
			desc = TECH_APP_ARMOR_11_3_DESC
			
			required = { 2941 14103 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 27 }
				command = { type = deactivate which = 2942 }
				command = { type = deactivate which = 2935 }
				command = { type = deactivate which = 2971 }
			}
		}
		application = { # Super-Heavy Tank (120 T)
			id = 2935
			name = "Super-Heavy Tank (120+mm T)"
			desc = TECH_APP_ARMOR_11_3_DESC
			
			required = { 2941 14803 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 28 }
				command = { type = deactivate which = 2942 }
				command = { type = deactivate which = 2943 }
				command = { type = deactivate which = 2971 }
			}
		}
		application = { # Super-Heavy Tank (150+mm)
			id = 2971
			name = TECH_APP_ARMOR_12_1_NAME
			desc = TECH_APP_ARMOR_12_1_DESC
			
			required = { 2941 14942 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 29 }
				command = { type = deactivate which = 2942 }
				command = { type = deactivate which = 2943 }
				command = { type = deactivate which = 2935 }
			}
		}
	} # Level 10
	
	level = { # 11 - Post-War Tank Technology
		id = 2999
		name = "Post-War Tank Technology"
		desc = "After the war, tank technology advanced slowly, with scientific analysis of armor and firepower allowing much greater protection than believed possible under weight limitations."
				
		cost = 20
		time = 350
		neg_offset = 45
		pos_offset = 90

	application = { # Armored Personnel Carriers
			id = 2972
			name = TECH_APP_ARMOR_12_2_NAME
			desc = TECH_APP_ARMOR_12_2_DESC
			
			required = { 2604 }
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = speed which = mechanized when = now value = 1 }
				command = { type = soft_attack which = mechanized when = now value = 2 }
				command = { type = ground_defense which = mechanized when = now value = 1 }
				command = { type = soft_attack which = armor when = now value = 2 }
				command = { type = ground_defense which = armor when = now value = 1 }
			}
		}
		
		application = { # Post War Tank Prototypes
			id = 2975
			name = "Post War Tank Prototypes"
			desc = "The tanks of the immediate post-war period had been designed in the closing days of the war, and as such, had not finished testing in time to participate in the war."
			
			required = { 2504 2804 } # Advanced prototypes added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Post War Tank 90mm+
			id = 2976
			name = "Post War Tank 90mm+"
			desc = "The post war tank used the latest armoring techniques to allow for more protection on less weight than though possible before. Historically, this was the American M-46."
			
			required = { 2975 14603 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 30 }
			}
		}
		application = { # Post War Tank 100mm+
			id = 2977
			name = "Post War Tank 100mm+"
			desc = "The post war tank used the latest armoring techniques to allow for more protection on less weight than though possible before. Historically, this was the British Centurion."
			
			required = { 2975 14703 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 31 }
			}
		}
		application = { # Post War Tank 120mm+
			id = 2978
			name = "Post War Tank (120mm+ howitzer-gun)"
			desc = "The post war tank used the latest armoring techniques to allow for more protection on less weight than though possible before. Sometimes those vehicles used modified versions of standard large callibre howitzers,as it was much easier to manufacture and support. Historically, those models of tanks (like Russian IS-2 and IS-3) were put into service at the end or just after the war and become predecestors of modern main battle tanks."
			
			required = { 2975 14103 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 32 }
			}
		}
			application = { # Post War Tank 120mm+
			id = 2936
			name = "Post War Tank (120mm+ gun)"
			desc = "The post war tank used the latest armoring techniques to allow for more protection on less weight than though possible before. Historically, those models of tanks were put into service at the end or just after the war and become predecestors of modern main battle tanks. 120mm long barrel tank gun was at the time ultimate anti-tank weapon and vehicles armed with this were ultimate tank-killers of the late war period as well."
			
			required = { 2975 14803 4803 } # Quality Control added
			chance = 90
			cost = 8
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 33 }
			}
		}
	} # Level 11
	
	level = { # 12 - MBT Theory"
		id = 2970
		name = "MBT Theory"
		desc = "Now that the hectic pace of the war was over, a more leisurely and orderly approach to tank design could be followed, implementing all the lessons learned over the war years into a single coherent whole. This new tank design would replace both the medium and heavy tanks with a single tank known as the Main Battle Tank."

		cost = 20
		time = 350
		neg_offset = 45
		pos_offset = 90

		application = { # Basic MBT
			id = 2980
			name = "Basic MBT"
			desc = "The new breed of tanks combined both speed, firepower, and armor into a package that had been impossible just a few years ago. Examples of the new class of Main Battle Tanks, as they were now being called, were the Soviet T-54, the American M-48 Patton, and the British Centurion Mk. III."
			
			required = { 4803 14603 2975 } # Quality Control added
			chance = 90
			cost = 12
			time = 90
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = armor value = 34 }
			}
		}
	} # Level 12
}